/**
 * 
 */

function register(){
	let userName = $("#userName").val();
	let password = $("#password").val();
	let repassword = $("#repassword").val();
	if(password === repassword){
		$.ajax({
			url: '../register',
			type: 'POST',
			data: {
				userName:userName,
				password:password,
				repassword:repassword
			},
			cache: false,
			async:false,
			dataType: "json",  // 前后台数据交换类型
			success: function(res){
				console.log("dddddddd");
			},
			error: function(err){
				console.log("err");
			}
		});
	}
}
